package com.example.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.gulimall.product.entity.AttrEntity;
import com.example.gulimall.product.vo.AttrGroupRelationVo;
import com.example.gulimall.product.vo.AttrPageResponseVo;
import com.example.gulimall.product.vo.AttrVo;
import com.example.gulimall.product.vo.item.SpuBaseAttrVo;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 商品属性
 *
 * @author zyred
 * @email zyred@163.com
 * @date 2021-08-23 10:31:18
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params, String attrType, Long catelogId);

    void saveAttr(AttrVo attr);

    AttrPageResponseVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    void relationDelete(List<AttrGroupRelationVo> voList);

    PageUtils noAttrGroupRelation(Map<String, Object> params, Long attrGroupId);

    List<SpuBaseAttrVo> selectBatchByCatalogId(Long catalogId);
}

